<html> <script language=javascript> setTimeout('window.location="../view/sysadmin.php"',500) </script> </html>
<?php 
	header('Content-Type:text/html;charset=UTF-8');
	require('../control/mysql.php');
	$name=$_GET['sname'];
	$sid=$_GET['sid'];
	$sql="update studentworkinlibrary set stillwork='no' where studentid='$sid'";
	$res=mysql_query($sql);
	$sql1="delete from worktable where studentid='$sid'";
	$res1=mysql_query($sql1);
	if($res&$res1){
		echo '成功离职该用户! <a href="./sysadmin.php">返回管理页面</a>'."<br/>";
	}
?>